function newObject(value)
	return function(action, v)
		if action =="get" then return value
		elseif action == "set" then value=v
		else print("invalid action")
		end
	end
end

d=newObject(100)
print(d("get"))
